<?php

namespace App\Console\Commands;

use App\Service\MiniprogramService;
use Illuminate\Console\Command;

class TestQrcode extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'app:test-qrcode';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Command description';

    /**
     * Execute the console command.
     */
    public function handle()
    {
        $service = new MiniprogramService();
        $url = $service->drawQrcode('pages/index/index');
        echo $url;
    }
}
